package zhuoyue.com.yanjiaohui.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import zhuoyue.com.yanjiaohui.R;
import zhuoyue.com.yanjiaohui.acticity.MyshopActivity;

/**
 * A simple {@link Fragment} subclass.
 */
public class MineFragment extends Fragment implements View.OnClickListener {

    private  LinearLayout mLinearLayout;


    public MineFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_mine, container, false);
        mLinearLayout = (LinearLayout) view.findViewById(R.id.shopclick);
        mLinearLayout.setOnClickListener(this);



        return view;

    }

    @Override
    public void onClick(View v) {

        startActivity(new Intent(getContext(), MyshopActivity.class));

    }
}
